<?xml version="1.0" encoding="utf-8" ?>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:composite="http://java.sun.com/jsf/composite"
      xmlns:ui="http://java.sun.com/jsf/facelets">
<composite:interface componentType="org.jboss.seam.faces.InputContainer">
    <composite:attribute name="label" required="false" />
    <composite:attribute name="hint" required="false" />
</composite:interface>
<composite:implementation>
    <div id="#{cc.clientId}" class="form-field clearfix">
        <h:outputLabel id="label" value="#{cc.attrs.label}" styleClass="#{cc.attrs.invalid ? 'label invalid' : 'label'}">
            <h:outputText styleClass="input-required" value=" * " rendered="#{cc.attrs.required}" />
            <h:outputText value=":" />
        </h:outputLabel>
        <ui:fragment>
            <composite:insertChildren />
        </ui:fragment>
        <h:panelGroup rendered="#{cc.attrs.invalid}" layout="block" styleClass="input-messages">
            <h:message id="message" for="" class="input-error" />
        </h:panelGroup>
        <h:panelGroup rendered="#{not empty cc.attrs.hint}" layout="block">
            <small>#{cc.attrs.hint}</small>
        </h:panelGroup>
    </div>
</composite:implementation>
</html>